package com.yanqu.road.entity.activity.yuanbaolottery;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.activity.foxcard.FoxTreeCard;

import java.math.BigInteger;
import java.util.*;

@FieldTypeAnnotation(tableName = "t_u_yuanbao_lottery", desc = "元宝招财")
public class UserYuanBaoLotteryData extends DataObject {
    @FieldTypeAnnotation(select = true, isIndex = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家id", select = true, isIndex = true, update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "第几轮")
    private int round;
    @FieldTypeAnnotation(desc = "本轮第几次")
    private int lotteryTimes;

    public UserYuanBaoLotteryData() {
    }

    public UserYuanBaoLotteryData(int activityId, long userId) {
        this.activityId = activityId;
        this.userId = userId;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        this.round = round;
        setUpdateOption();
    }

    public int getLotteryTimes() {
        return lotteryTimes;
    }

    public void setLotteryTimes(int lotteryTimes) {
        this.lotteryTimes = lotteryTimes;
        setUpdateOption();
    }
}
